/*
 * Copyright (c) 2016 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.serv.shop.entity.ShopUser;
import com.jnzc.ocr.serv.shop.entity.ShopUserRela;
import com.jnzc.ocr.serv.shop.vo.ShopUserCreateVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/8/31
 */
@FeignClient("serv-shop")
@RequestMapping("/shopUserApi")
public interface ShopUserApi {

    @GetMapping("/find")
    ShopUser find(@RequestParam("userId") Long userId);

    @GetMapping("/listShopRela")
    List<ShopUserRela> listShopRela(@RequestParam("userId") Long userId);

    @PostMapping("/create")
    ShopUser create(@RequestBody ShopUserCreateVo param);

    @PostMapping("/update")
    ShopUser update(@RequestBody ShopUser obj);
}
